package com.cn.demo.springboot.freemarker.config;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jagregory.shiro.freemarker.ShiroTags;

@Component
public class FreeMarkerShiroConfig {
	
	@Autowired    
    protected freemarker.template.Configuration configuration; 
	
	@PostConstruct
	public void initShiroTags() {
		configuration.setSharedVariable("shiro", new ShiroTags());
	}
	
}
